package cn.hznc.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author：Administrator
 * @Date：2023/9/21 15:21
 */
@Getter
@Setter
@Table(name = "t_assembly_tool_type")
@TableName(value = "t_assembly_tool_type")
public class AssemblyToolTypeEntity{

    /**
     * 系统编码
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 刀具号
     */
    @Column(name = "tool_no",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("tool_no")
    private String toolNo;

    /**
     * 部件ids
     */
    @Column(name = "part_ids",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("part_ids")
    private String partIds;

    /**
     * 总成名
     */
    @Column(name = "name",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("name")
    private String name;

    /**
     * 总成名
     */
    @Column(name = "type",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("type")
    private String type;

    /**
     * 类型编码
     */
    @Column(name = "type_code",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("type_code")
    private String typeCode;

    /**
     * 程序内码
     */
    @Column(name = "code",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField("code")
    private String code;

    /**
     * 刀具号
     */
    @Column(name = "image",type = MySqlTypeConstant.VARCHAR,length = 250)
    @TableField("image")
    private String image;

    /**
     * 刀具号
     */
    @Column(name = "two_dimensional_model",type = MySqlTypeConstant.VARCHAR,length = 250)
    @TableField("two_dimensional_model")
    private String twoDimensionalModel;

    /**
     * 刀具号
     */
    @Column(name = "three_dimensional_model",type = MySqlTypeConstant.VARCHAR,length =250)
    @TableField("three_dimensional_model")
    private String threeDimensionalModel;

    /**
     * 刀具号
     */
    @Column(name = "three_dimensional_model_stl",type = MySqlTypeConstant.VARCHAR,length = 255)
    @TableField("three_dimensional_model_stl")
    private String threeDimensionalModelStl;

    /**
     * 刀具号
     */
    @Column(name = "parameters",type = MySqlTypeConstant.LONGTEXT)
    @TableField("parameters")
    private String parameters;

    /**
     * 刀具号
     */
    @Column(name = "create_time",type = MySqlTypeConstant.DATETIME)
    @TableField("create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 刀具号
     */
    @Column(name = "modify_time",type = MySqlTypeConstant.DATETIME)
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 用户id
     */
    @Column(name = "user_id",type = MySqlTypeConstant.INT , length = 11)
    @TableField("user_id")
    private Integer userId;

    /**
     * 刀具长度
     */
    @Column(name = "tool_length",type = MySqlTypeConstant.DOUBLE , length = 11)
    @TableField("tool_length")
    private Double toolLength;

    /**
     * 刀具半径
     */
    @Column(name = "tool_radius",type = MySqlTypeConstant.DOUBLE , length = 11)
    @TableField("tool_radius")
    private Double toolRadius;

    /**
     * 刀具id
     */
    @Column(name = "tool_id",type = MySqlTypeConstant.INT , length = 11)
    @TableField("tool_id")
    private Integer toolId;
}
